package com.learnyou.server.xingzuo.dao.generator;

import cn.hutool.core.bean.BeanUtil;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * @author pywang
 * @Description
 * @date 2020-04-22 15:31
 **/
@Data
public class ConfigProperties {

    private String active;

    private Map<String, HashMap<String, String>> db = new HashMap<>();

    public Config getActiveDb() {
        return BeanUtil.copyProperties(db.get(active), Config.class);
    }
}
